﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/Main.master" AutoEventWireup="true" CodeFile="DangKy.aspx.cs" Inherits="Pages_DangKy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style3
        {
            width: 110px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 <div class ="formBox">
            <h2>Thông Tin Đăng Ký Khách Hàng                  
                <asp:Image ID="Image1" runat="server" Height="50px" ImageUrl="~/Images/dangky.png" />    
            </h2>
            <p>
                <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">

                    <asp:View ID="View1" runat="server">
                        <table class="style1">
                            <tr>
                                <td class="style3">
                                    Tên đăng nhập:</td>
                                <td>
                                    <asp:TextBox ID="txtTenDangNhap" runat="server" Width="222px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                        ControlToValidate="txtTenDangNhap" 
                                        ErrorMessage="Tên đăng nhập không  được trống" ForeColor="Red">*</asp:RequiredFieldValidator>
                                    <asp:CustomValidator ID="CustomValidator1" runat="server" 
                                        ControlToValidate="txtTenDangNhap" ErrorMessage="Tên này đã tồn tại" 
                                        ForeColor="Blue" onservervalidate="CustomValidator1_ServerValidate">*</asp:CustomValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    Mật khẩu:</td>
                                <td>
                                    <asp:TextBox ID="txtMatKhau" runat="server" Width="222px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                        ControlToValidate="txtMatKhau" ErrorMessage="Mật khẩu không  được trống" 
                                        ForeColor="Red">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    Họ tên:</td>
                                <td>
                                    <asp:TextBox ID="txtHoTen" runat="server" Width="222px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                        ControlToValidate="txtHoTen" ErrorMessage="Họ tên không  được trống" 
                                        ForeColor="Red">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    Địa chỉ:</td>
                                <td>
                                    <asp:TextBox ID="txtDiaChi" runat="server" Height="55px" TextMode="MultiLine" 
                                        Width="222px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    Điện thoại:</td>
                                <td>
                                    <asp:TextBox ID="txtDienThoai" runat="server" Width="222px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    Ngày sinh:</td>
                                <td>
                                    <asp:TextBox ID="txtNgaySinh" runat="server" Width="222px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                        ControlToValidate="txtNgaySinh" ErrorMessage="Ngày sinh không  được trống" 
                                        ForeColor="Red">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    Giới tính:</td>
                                <td>
                                    <asp:CheckBox ID="CBox" runat="server" Text="Nam" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    Email:</td>
                                <td>
                                    <asp:TextBox ID="txtEmail" runat="server" Width="222px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                        ControlToValidate="txtEmail" ErrorMessage="Email không  được trống" 
                                        ForeColor="Red">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    Hình:</td>
                                <td>
                                    <asp:FileUpload ID="FileUpload1" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    &nbsp;</td>
                                <td>
                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" 
                                        HeaderText="Thông báo" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    
                                </td>
                                       <td>
                                    
                                            <asp:Button ID="btnDangKy" runat="server" Text="Đăng ký" Width="90px" 
                                                                        onclick="btnDangKy_Click" />
                                    
                                </td>
                            </tr>
                        </table>
                    </asp:View>
                    <asp:View ID="View2" runat="server">

                    <div class="alignL">
                    <div><asp:Image ID="Image3" runat="server" Height="162px" Width="257px" 
                            ImageAlign="Left" />
                    <asp:Label ID="lbKetQua" runat="server" Text="Label" CssClass="alignJ" ></asp:Label>                                         
                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Pages/TrangChu.aspx">Trở về</asp:HyperLink>
                    </div>
                </div>

                    </asp:View>

                </asp:MultiView>
            </p>
</div>

</asp:Content>

